<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width" />
    <title>登录</title>
    <style>
        .layui-container,layui-form {
            width: 400px;
            height: 330px;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            position: absolute;
            text-align: center;
            background-color: rgba(0,0,0,0.5);
        }

        .layui-form h2 {
            color: #fff;
        }
        .layui-form input {
            width: 80%;
            margin-top: 10px;
            padding: 20px;
            background-color: initial;
            color: white;
        }
        .layui-form button {
            min-width: 150px;
            margin-top: 10px;
            padding: 10px;
            background-color: initial;
            width: 91%;
            color: white;
        }
    </style>
</head>
<body style="background: url('../img/index_bg.jpg');background-size: 100%;">
    <div class="layui-container">
        <h2 style="color: white;">Z-BLOG</h2>
        <form class="layui-form" action="login" method="post">

            <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">

            <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">

            <button type="submit">登录</button>
            <button type="reset" >重置</button>

        </form>
    </div>

</body>
</html>